<?php
/**
 * System_Model_EmployeeMapper
 *
 * @author mmxie
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: EmployeeMapper.php 906 2011-10-20 02:38:33Z mmxie $
 */
class System_Model_EmployeeMapper extends IG_ModelMapper
{
    public function getRoles($employeeId = null)
    {
        $employeeId = is_null($employeeId) ? $this->getModel()->getEmployeeId() : $employeeId;
        return $this->getDbTable()->getRoles($employeeId);;
    }

    public function loginError($name)
    {
        return $this->getDbTable()->loginError($name);
    }
}